package org.training.person.mason.entities;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;

@PersistenceCapable
public class Education implements Serializable{	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4240187815957704566L;
	@PrimaryKey
	@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
	private Key educationId;
	@Persistent
	private String School;
	@Persistent
	private String Professional;
	@Persistent
	private Date FromDate;
	@Persistent
	private Date ToDate;
	@Persistent
	private Text description; 
	
	/**
	 * 
	 */
	public Education() {

	}
	
	/**
	 * @param school
	 * @param professional
	 * @param fromDate
	 * @param description
	 */
	public Education(String school, String professional, Date fromDate,
			Text description) {
		super();
		School = school;
		Professional = professional;
		FromDate = fromDate;
		this.description = description;
	}

	/**
	 * @return the school
	 */
	public String getSchool() {
		return School;
	}

	/**
	 * @param school the school to set
	 */
	public void setSchool(String school) {
		School = school;
	}

	/**
	 * @return the professional
	 */
	public String getProfessional() {
		return Professional;
	}

	/**
	 * @param professional the professional to set
	 */
	public void setProfessional(String professional) {
		Professional = professional;
	}

	/**
	 * @return the fromDate
	 */
	public Date getFromDate() {
		return FromDate;
	}

	/**
	 * @param fromDate the fromDate to set
	 */
	public void setFromDate(Date fromDate) {
		FromDate = fromDate;
	}

	/**
	 * @return the toDate
	 */
	public Date getToDate() {
		return ToDate;
	}

	/**
	 * @param toDate the toDate to set
	 */
	public void setToDate(Date toDate) {
		ToDate = toDate;
	}

	/**
	 * @return the description
	 */
	public Text getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(Text description) {
		this.description = description;
	}

	/**
	 * @return the userId
	 */
	public Key getEducationId() {
		return educationId;
	}
	
	
}
